// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
  compatibilityDate: "2024-11-01",
  devtools: { enabled: true },
  devServer: {
    host: "0.0.0.0",
    port: 4000,
  },
  app: {
    head: {
      script: [
        {
          src: "http://192.168.13.209:3000/script.js",
          defer: true,
          "data-website-id": "5eb6232c-3737-441a-ab02-c3f82be51618",
          "data-tag": "homepage-layout-a",
        },
        {
          src: "http://192.168.13.209:3000/script.js",
          defer: true,
          "data-website-id": "5eb6232c-3737-441a-ab02-c3f82be51618",
          "data-tag": "homepage-layout-b",
        },
      ],
    },
  },
  modules: ['@element-plus/nuxt'],
  elementPlus: {
    // 可选配置
    importStyle: 'scss',
    themes: ['dark'] // 可选主题
  },
  pages: true, // 启用自动路由生成
  css: ['~/assets/scss/global.scss']
});
